package com.example.tt.Repository;

import com.example.tt.entity.LoginUser;
import org.springframework.data.repository.CrudRepository;

/**
 * 用户持久类
 * Created by ZhangWei on 2018/5/23 11:34
 */
public interface UserRepository extends CrudRepository<LoginUser, Integer> {

    /*
    * 创建用户
    * */
    public void create(LoginUser loginUser);

    /*
    * 通过账号查找用户信息
    * */
    public LoginUser findByUserAccount(String userAccount);
}
